"""
自定义权限管理
"""
from rest_framework.permissions import BasePermission


class CustomerPermission(BasePermission):
    """
    自定义权限
    """

    def has_permission(self, request, view):
        print('22222222222222222')
        return True


class FastMailPermission(BasePermission):

    def has_permission(self, request, view):
        user = request.user
        if user.grop == '':
            pass
        return True or False
